import request from "@/utils/request";

// 服饰列表
export function listDiscountByPage(query) {
  return request({
    url: "/gsDiscount/queryAll",
    method: "get",
    params: query,
  });
}

// 新增优惠
export function addDiscount(clId, discount) {
  return request({
    url: "/gsDiscount/insertDiscount/" + clId + '/' + discount,
    method: "get",
  });
}

// 修改优惠
export function updateDiscount(clId, discount) {
  return request({
    url: "/gsDiscount/changeDiscount/" + clId + '/' + discount,
    method: "get",
  });
}

// 删除优惠
export function deleteDiscount(clId) {
  return request({
    url: "/gsDiscount/deleteDiscount/" + clId,
    method: "get",
  });
}
